package licode.unisop.oidc.auth.modal;

import lombok.Getter;

/**
 * 定义访问令牌
 *
 * @author licode
 */
@Getter
public class AccessTokenId extends CommonId {
    /**
     * 领域标识
     */
    private String realmId;

    public AccessTokenId realmId(String realmId) {
        this.realmId = realmId;
        return this;
    }
    
    public void setRealmId(String realmId) {
        this.realmId = realmId;
    }

    public String getAccessToken() {
        return super.getId();
    }

    public static AccessTokenId build(String id) {
        AccessTokenId at = new AccessTokenId();
        at.setId(id);
        return at;
    }
}
